package com.galaxy.payment.domain.convert;

import com.galaxy.payment.domain.AccountFlow;
import com.galaxy.payment.domain.bo.AccountFlowBo;
import com.galaxy.payment.domain.vo.AccountFlowVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 资金流水记录对象转换器
 */
@Mapper
public interface AccountFlowConvert {

    AccountFlowConvert INSTANCE = Mappers.getMapper(AccountFlowConvert.class);

    /**
     * bo 转 entity
     */
    AccountFlow boToEntity(AccountFlowBo bo);

    /**
     * entity 转 vo
     */
    AccountFlowVo entityToVo(AccountFlow entity);

    /**
     * bo 转 vo
     */
    AccountFlowVo boToVo(AccountFlowBo bo);
} 